<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div>
    <!--v-is让元素是否显示和变量进行绑定。不显示时删除-->
<p v-if="isShow">黄涛</p>
    <p v-else>李健</p>
    <!---->
    <p v-show="isShow">继承</p>
    <p v-else>徐魏</p>
</div>
<script src="https://cdn.staticfile.org/vue/2.2.2/vue.min.js"></script>
<script>
    let v = new Vue({
        el:"body>div",
        data:{
            isShow:true
        },

    })
</script>

</body>
</html>